﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace MediumApi.Db
{
    /// <summary>
    /// 频道
    /// </summary>
    [Table("tb_channel")]
    public class Channel
    {
        public int Id { get; set; }
        public string ChannelName { get; set; }
        /// <summary>
        /// 频道排序
        /// </summary>
        public int ChannelSort { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        public string AvatarUrl { get; set; }
        /// <summary>
        /// 父级
        /// </summary>
        public int Parent { get; set; }
        /// <summary>
        /// 首页排序
        /// </summary>
        public int HomeSort { get; set; }
        /// <summary>
        /// 类型 1-频道 2-分类
        /// </summary>
        public int Type { get; set; }
        public DateTime CreatedAt { get; set; } 
    }
}
